package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.Medicines;
import com.liangsui.mss.dto.MedicinesDto;
import com.liangsui.mss.vo.DataGridView;

import java.util.List;

/**
* @author zhang
* @description 针对表【stock_medicines(药品信息表)】的数据库操作Service
* @createDate 2022-12-06 14:18:42
*/
public interface MedicinesService extends IService<Medicines> {

    DataGridView listMedicinesPage(MedicinesDto medicinesDto);

    int addMedicines(MedicinesDto medicinesDto);

    int updateMedicines(MedicinesDto medicinesDto);

    Medicines getMedicinesById(Long medicinesId);

    int deleteMedicinesByIds(Long[] medicinesIds);

    List<Medicines> selectAllMedicines();

    int updateMedicinesStorage(Long medicinesId, Integer medicinesStockNum);

    int deductionMedicinesStorage(Long medicinesId, long num);
}
